package com.atguigu.spzx.model.result;

import lombok.Getter;

@Getter
public enum ResultCodeEnum {
    //初始化枚举类实例对象
    SUCCESS(200,"SUCCESS"),
    FAIL(-1 ,"未知错误"),
    LOGIN_USERNAME_ERROR(101,"登录账号错误"),
    LOGIN_CODE_ERROR(104,"验证码错误"),
    LOGIN_PASSWORD_ERROR(102,"登录密码错误"),
    LOGIN_PARAMS_ERROR(103,"登录参数格式错误"),
    LOGIN_STATUS_ERROR(208,"登录状态失效"),
    FILE_UPLOAD_ERROR(301,"文件上传失败"),
    FILE_DELETE_ERROR(302,"文件删除失败"),
    FILE_EXPORT_ERROR(304,"数据导出失败"),
    MENU_HAS_CHILDREN_ERROR(303,"菜单有级联数据"),
    SEND_MESSAGE_MOBILE_ERROR(401,"手机号格式错误"),
    SEND_MESSAGE_LIMIT_ERROR(402,"手机号获取验证码过于频繁"),
    SEND_MESSAGE_COUNT_ERROR(403,"手机号获取验证码异常"),
    REGISTE_PARAMS_ERROR(404,"注册信息错误"),
    REGISTE_MOBILE_EXISTS_ERROR(405,"注册手机号已被占用"),
   LOGIN_USER_STATUS_ERROR(406,"账号被禁用"),
   ORDER_ITEM_PRICE_ERROR(407,"页面数据过期"),
   ORDER_ITEM_STOCK_ERROR(407,"库存不足"),
   ORDER_RESUBMIT_ERROR(408,"订单重复提交"),
   ALIPAY_PAGE_ERROR(409,"跳转到支付页失败"),
   ALIPAY_SIGN_VALIDATE_ERROR(410,"回调参数签名错误"),

    ;
    private Integer code;
    private String message;

    private ResultCodeEnum(Integer code , String message){
        this.code = code;
        this.message = message;
    }
}
